package com.stb.server.url;

public interface URLEncoder {
	/**
	 * Encodes a URL and its params and appends a digest
	 * @param url
	 * @param keyValues
	 * @return URL with params and digest
	 */
	String encode(String url, String... keyValues);
	
	/**
	 * Validates a url against its digest
	 * @param url
	 * @return
	 */
	boolean validate(String url);

	/**
	 * @param paramURL
	 * @param paramName
	 * @return param value for specified param from URL params or null
	 */
	String getParam(String paramURL, String paramName);
}
